<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>


    
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>

		<script src="https://cdn.jsdelivr.net/npm/makerjs@0/target/js/browser.maker.js"></script>
	  <script src="https://cdn.jsdelivr.net/npm/bezier-js@2/bezier.js"></script>
	  <script src="https://cdn.jsdelivr.net/npm/opentype.js@0/dist/opentype.js"></script>
    </style>
</head>
<body>


</body>
<script>

class A {
	constructor(x,y){
        this.x = x;
        this.y = y;
    }
} 

let arr = [];
arr.push(new A(10,13));
arr.push(new A(9,10));
arr.push(new A(1,120));
arr.push(new A(22,30));
arr.push(new A(12,0));
arr.reverse();
console.log(arr);

var fruits = ["Banana", "Orange", "Apple", "Mango"];
console.log("fruits.reverse>>",fruits.reverse()); 

// 会修源数组
console.log("fruits>>",fruits);
// "Mango", "Apple", "Orange", "Banana" ]
//reverse 结论，对象数组，调用 reverse 依然 ok


var points = [40,100,1,5,25,10];
console.log("points.sort>>",points.sort(function(a,b){return a-b}));
console.log("points>>",points);
// sort 结论 会改变原数组

</script>
</html>